import {Controller} from "../../../web/_Controller"
import {Component} from "../../anno/Component"
import {RequestMapping} from "../../anno/RequestMapping"


@Component()
class WelcomePageController extends Controller{

  @RequestMapping("/")
  welcome(req, res:HttpResponse) {
    res.end("hello my-server")
  }

  @RequestMapping("/favicon.ico")
  favicon(req, res: HttpResponse) {
    res.resource("/favicon.ico")
  }
}
